

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 8.01.0622 */
/* at Tue Jan 19 11:14:07 2038
 */
/* Compiler settings for UPhoneCtrl.idl:
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0622 
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */



/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __UPhoneCtrl_h__
#define __UPhoneCtrl_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IUsbPhone_FWD_DEFINED__
#define __IUsbPhone_FWD_DEFINED__
typedef interface IUsbPhone IUsbPhone;

#endif 	/* __IUsbPhone_FWD_DEFINED__ */


#ifndef ___IUsbPhoneEvents_FWD_DEFINED__
#define ___IUsbPhoneEvents_FWD_DEFINED__
typedef interface _IUsbPhoneEvents _IUsbPhoneEvents;

#endif 	/* ___IUsbPhoneEvents_FWD_DEFINED__ */


#ifndef __UsbPhone_FWD_DEFINED__
#define __UsbPhone_FWD_DEFINED__

#ifdef __cplusplus
typedef class UsbPhone UsbPhone;
#else
typedef struct UsbPhone UsbPhone;
#endif /* __cplusplus */

#endif 	/* __UsbPhone_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __IUsbPhone_INTERFACE_DEFINED__
#define __IUsbPhone_INTERFACE_DEFINED__

/* interface IUsbPhone */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IUsbPhone;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("CE88C7DF-2BE8-488B-8D91-DED1E5EB5F47")
    IUsbPhone : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitPhone( void) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PhoneType( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PhoneStatus( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleasePhone( void) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PhoneHWVersion( 
            /* [retval][out] */ INT *pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HW_Version( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SW_Version( 
            /* [retval][out] */ BSTR *pVal) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DialNumber( 
            BSTR strDialNumber) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE HandFreeAndDial( 
            BSTR strDialNumber) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE QueryPhoneStatus( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE HandFreeOn( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE HandFreeOff( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DecodeEvent( 
            INT EventId,
            BSTR *strEvent,
            int strBuffLen) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MutePhoneRing( 
            INT isMute) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RF_Function( 
            short OffTimeInMs) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeInitPhone( void) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct IUsbPhoneVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IUsbPhone * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            _COM_Outptr_  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IUsbPhone * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IUsbPhone * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IUsbPhone * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IUsbPhone * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IUsbPhone * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IUsbPhone * This,
            /* [annotation][in] */ 
            _In_  DISPID dispIdMember,
            /* [annotation][in] */ 
            _In_  REFIID riid,
            /* [annotation][in] */ 
            _In_  LCID lcid,
            /* [annotation][in] */ 
            _In_  WORD wFlags,
            /* [annotation][out][in] */ 
            _In_  DISPPARAMS *pDispParams,
            /* [annotation][out] */ 
            _Out_opt_  VARIANT *pVarResult,
            /* [annotation][out] */ 
            _Out_opt_  EXCEPINFO *pExcepInfo,
            /* [annotation][out] */ 
            _Out_opt_  UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitPhone )( 
            IUsbPhone * This);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneType )( 
            IUsbPhone * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneStatus )( 
            IUsbPhone * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleasePhone )( 
            IUsbPhone * This);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneHWVersion )( 
            IUsbPhone * This,
            /* [retval][out] */ INT *pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HW_Version )( 
            IUsbPhone * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SW_Version )( 
            IUsbPhone * This,
            /* [retval][out] */ BSTR *pVal);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DialNumber )( 
            IUsbPhone * This,
            BSTR strDialNumber);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *HandFreeAndDial )( 
            IUsbPhone * This,
            BSTR strDialNumber);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryPhoneStatus )( 
            IUsbPhone * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *HandFreeOn )( 
            IUsbPhone * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *HandFreeOff )( 
            IUsbPhone * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DecodeEvent )( 
            IUsbPhone * This,
            INT EventId,
            BSTR *strEvent,
            int strBuffLen);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MutePhoneRing )( 
            IUsbPhone * This,
            INT isMute);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RF_Function )( 
            IUsbPhone * This,
            short OffTimeInMs);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeInitPhone )( 
            IUsbPhone * This);
        
        END_INTERFACE
    } IUsbPhoneVtbl;

    interface IUsbPhone
    {
        CONST_VTBL struct IUsbPhoneVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IUsbPhone_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IUsbPhone_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IUsbPhone_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IUsbPhone_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define IUsbPhone_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define IUsbPhone_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define IUsbPhone_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define IUsbPhone_InitPhone(This)	\
    ( (This)->lpVtbl -> InitPhone(This) ) 

#define IUsbPhone_get_PhoneType(This,pVal)	\
    ( (This)->lpVtbl -> get_PhoneType(This,pVal) ) 

#define IUsbPhone_get_PhoneStatus(This,pVal)	\
    ( (This)->lpVtbl -> get_PhoneStatus(This,pVal) ) 

#define IUsbPhone_ReleasePhone(This)	\
    ( (This)->lpVtbl -> ReleasePhone(This) ) 

#define IUsbPhone_get_PhoneHWVersion(This,pVal)	\
    ( (This)->lpVtbl -> get_PhoneHWVersion(This,pVal) ) 

#define IUsbPhone_get_HW_Version(This,pVal)	\
    ( (This)->lpVtbl -> get_HW_Version(This,pVal) ) 

#define IUsbPhone_get_SW_Version(This,pVal)	\
    ( (This)->lpVtbl -> get_SW_Version(This,pVal) ) 

#define IUsbPhone_DialNumber(This,strDialNumber)	\
    ( (This)->lpVtbl -> DialNumber(This,strDialNumber) ) 

#define IUsbPhone_HandFreeAndDial(This,strDialNumber)	\
    ( (This)->lpVtbl -> HandFreeAndDial(This,strDialNumber) ) 

#define IUsbPhone_QueryPhoneStatus(This)	\
    ( (This)->lpVtbl -> QueryPhoneStatus(This) ) 

#define IUsbPhone_HandFreeOn(This)	\
    ( (This)->lpVtbl -> HandFreeOn(This) ) 

#define IUsbPhone_HandFreeOff(This)	\
    ( (This)->lpVtbl -> HandFreeOff(This) ) 

#define IUsbPhone_DecodeEvent(This,EventId,strEvent,strBuffLen)	\
    ( (This)->lpVtbl -> DecodeEvent(This,EventId,strEvent,strBuffLen) ) 

#define IUsbPhone_MutePhoneRing(This,isMute)	\
    ( (This)->lpVtbl -> MutePhoneRing(This,isMute) ) 

#define IUsbPhone_RF_Function(This,OffTimeInMs)	\
    ( (This)->lpVtbl -> RF_Function(This,OffTimeInMs) ) 

#define IUsbPhone_DeInitPhone(This)	\
    ( (This)->lpVtbl -> DeInitPhone(This) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IUsbPhone_INTERFACE_DEFINED__ */



#ifndef __UPHONECTRLLib_LIBRARY_DEFINED__
#define __UPHONECTRLLib_LIBRARY_DEFINED__

/* library UPHONECTRLLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_UPHONECTRLLib;

#ifndef ___IUsbPhoneEvents_DISPINTERFACE_DEFINED__
#define ___IUsbPhoneEvents_DISPINTERFACE_DEFINED__

/* dispinterface _IUsbPhoneEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__IUsbPhoneEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("379FC62B-A801-4527-A0BA-A56ED9F7B2B0")
    _IUsbPhoneEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _IUsbPhoneEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            _IUsbPhoneEvents * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            _COM_Outptr_  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            _IUsbPhoneEvents * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            _IUsbPhoneEvents * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            _IUsbPhoneEvents * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            _IUsbPhoneEvents * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            _IUsbPhoneEvents * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            _IUsbPhoneEvents * This,
            /* [annotation][in] */ 
            _In_  DISPID dispIdMember,
            /* [annotation][in] */ 
            _In_  REFIID riid,
            /* [annotation][in] */ 
            _In_  LCID lcid,
            /* [annotation][in] */ 
            _In_  WORD wFlags,
            /* [annotation][out][in] */ 
            _In_  DISPPARAMS *pDispParams,
            /* [annotation][out] */ 
            _Out_opt_  VARIANT *pVarResult,
            /* [annotation][out] */ 
            _Out_opt_  EXCEPINFO *pExcepInfo,
            /* [annotation][out] */ 
            _Out_opt_  UINT *puArgErr);
        
        END_INTERFACE
    } _IUsbPhoneEventsVtbl;

    interface _IUsbPhoneEvents
    {
        CONST_VTBL struct _IUsbPhoneEventsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _IUsbPhoneEvents_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define _IUsbPhoneEvents_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define _IUsbPhoneEvents_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define _IUsbPhoneEvents_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define _IUsbPhoneEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define _IUsbPhoneEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define _IUsbPhoneEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___IUsbPhoneEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_UsbPhone;

#ifdef __cplusplus

class DECLSPEC_UUID("032FD11A-3480-48FB-9868-1204A354A0F8")
UsbPhone;
#endif
#endif /* __UPHONECTRLLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  BSTR_UserSize64(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal64(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal64(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree64(     unsigned long *, BSTR * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


